package net.zoneland.zrdp.system.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import net.zoneland.zrdp.common.annotation.Excel;
import net.zoneland.zrdp.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 公告评论对象 sys_notice_comment
 *
 * @author zonevue
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SysNoticeComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private Long id;

    /** 公告id */
    @Excel(name = "公告id")
    private Long noticeId;

    /** 评论 */
    @NotBlank(message = "评论不能为空")
    @Size(min = 3, max = 64, message = "评论长度不能小于3不能超过64")
    @Excel(name = "评论")
    private String comment;

}
